﻿using CL.Json.Entity;
using Newtonsoft.Json;
using System.IO;
using System.Web.Http;

namespace CL.WebAPI.Controllers
{
    public class FileInfoController : BaseController
    {
        #region ---------- 上传 ---------- 
        /// <summary>
        /// 上传图片
        /// </summary>
        /// <param name="Token">令牌</param>
        /// <param name="UserCode">用户编号</param>
        /// <param name="FileType">文件类型(后缀名)</param>
        /// <param name="ModuleType">类别 1头像</param>
        /// <param name="FileName">文件名称</param>
        /// <param name="FileData">文件</param>
        /// <returns></returns>
        [HttpPost]
        public string UploadFile(string Token, long UserCode, string FileType, int ModuleType, string FileName, Stream FileData)
        {
            var entity = new JsonResult()
            {
                Code = 0,
                Msg = "成功"
            };
            return JsonConvert.SerializeObject(entity);
        }
        #endregion
    }
}
